package com.gitee.hengboy.job.server.service;

import com.gitee.hengboy.distributed.job.common.exception.JobException;
import com.gitee.hengboy.distributed.job.common.model.JobNode;
import com.gitee.hengboy.distributed.job.common.service.HeartSyncService;
import com.weibo.api.motan.config.springsupport.annotation.MotanService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 心跳检查service实现
 *
 * @author：于起宇 <p>
 * ================================
 * Created with IDEA.
 * Date：2019-01-08
 * Time：16:31
 * 个人博客：http://blog.yuqiyu.com
 * 简书：http://www.jianshu.com/u/092df3f77bca
 * 码云：https://gitee.com/hengboy
 * GitHub：https://github.com/hengyuboy
 * ================================
 * </p>
 */
@MotanService
public class HearSyncServiceImpl implements HeartSyncService {
    /**
     * logger instance
     */
    static Logger logger = LoggerFactory.getLogger(HearSyncServiceImpl.class);

    @Override
    public void sync(JobNode jobNode) throws JobException {
        logger.info("收到来自：{}，的心跳检查", jobNode.getNodeAddress());
    }
}
